package cn.bonoon.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.Authentication;

import cn.bonoon.kernel.security.LogonUser;

/**
 * <pre>
 * 登录成功后插件可以实现自己的登录处理；
 * 比如说往数据库
 * </pre>
 * @author jackson
 *
 */
public interface LoginSuccessHandler {
	void onSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication, LogonUser user);
}
